package com.ardf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;

/**
 * <p>
 * 选手表
 * </p>
 *
 * @author ShiYunHao
 * @since 2025-01-06
 */
@Getter
@Setter
public class Athlete implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 选手id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 姓名
     */
    private String name;

    /**
     * 性别
     *
     * <p>
     * “男”：男<br>
     * “女”：女
     * </p>
     */
    private String gender;

    /**
     * 电话
     */
    private String phone;

    /**
     * 身份证号
     */
    private String identity;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 备注：原指卡号
     */
    private String description;

    /**
     * 组别id
     */
    private Long groupId;

    /**
     * 外键：单位id
     */
    private Long unitId;
}
